import request from '@/utils/request'


export function getListByUserId(query) {
  return request({
    url: '/book/bookreturn/getListByUserId',
    method: 'get',
    params: query
  })
}

// 查询还书管理列表
export function listBookreturn(query) {
  return request({
    url: '/book/bookreturn/list',
    method: 'get',
    params: query
  })
}

// 查询还书管理详细
export function getBookreturn(id) {
  return request({
    url: '/book/bookreturn/' + id,
    method: 'get'
  })
}

// 新增还书管理
export function addBookreturn(data) {
  return request({
    url: '/book/bookreturn',
    method: 'post',
    data: data
  })
}

// 修改还书管理
export function updateBookreturn(data) {
  return request({
    url: '/book/bookreturn',
    method: 'put',
    data: data
  })
}

// 删除还书管理
export function delBookreturn(id) {
  return request({
    url: '/book/bookreturn/' + id,
    method: 'delete'
  })
}
